// DialogExt.cpp : implementation file
//

#include "stdafx.h"
#include "DialogExt.h"


// CDialogExt dialog
IMPLEMENT_DYNAMIC(CDialogExt, CDialog)

CDialogExt::CDialogExt(UINT nIDTemplate, CWnd* pParent) : CDialog(nIDTemplate, pParent)
{
	m_rcIDD=nIDTemplate;
}

CDialogExt::~CDialogExt()
{
}

void CDialogExt::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
}

BEGIN_MESSAGE_MAP(CDialogExt, CDialog)
	ON_WM_CREATE()
END_MESSAGE_MAP()

// CDialogExt message handlers

BOOL CDialogExt::OnInitDialog()
{
	if ( !CDialog::OnInitDialog() )
		return FALSE;
    
	dpi.Attach(AfxGetResourceHandle(),m_hWnd,m_rcIDD,96.0);
	return  TRUE;
}

int CDialogExt::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CDialog::OnCreate(lpCreateStruct) == -1)
		return -1;

	dpi.Attach(AfxGetResourceHandle(),m_hWnd,m_rcIDD,96.0);

	return 0;
}
